#pragma once
template <typename ItemType, unsigned int MAX_SIZE>
class FixedArray
{
public:
	FixedArray():m_iSize(0){}
	unsigned int  Size() const { return m_iSize;}
	ItemType & ItemAt(unsigned int index) { return m_Datas[index];}
	void PushBack(const ItemType& rItem)
	{
		if(m_iSize<MAX_SIZE)
		{
			m_Datas[m_iSize++]=rItem;
		}
	}
	bool IsEmpty() const { return m_iSize==0;}
	void Clear(){ m_iSize=0;}
private:
	unsigned int m_iSize;
	ItemType m_Datas[MAX_SIZE];
};